package com.bootlever.framework.webservice.configuration;

import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebServiceConfiguration {

    @Bean
    public ServletRegistrationBean cxfServlet(){
        return new ServletRegistrationBean(new CXFServlet(),"/webservice/*");
    }

    @Bean
    public BootleverBeanFactoryAware bootleverBeanFactoryAware(){
        return new BootleverBeanFactoryAware();
    }
}
